package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_SCREEN_MAPS")
@ApiModel(value = "大屏地图")
public class ScreenMaps extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="关区编码")
    @TableField(value ="CUSTOM_CODE")
    @JsonProperty(value = "customCode")
    private String customCode;

    @ApiModelProperty(value="关区名")
    @TableField(value ="CUSTOM_NAME")
    @JsonProperty(value = "customName")
    private String customName;

    @ApiModelProperty(value="地图上方有无预警 1有 0无")
    @TableField(value ="WARNING_STATUS")
    @JsonProperty(value = "warn")
    private String warn;

    @ApiModelProperty(value="具体预警内容")
    @TableField(value ="WARNING_CONTENT")
    @JsonProperty(value = "warnCont")
    private String warnCont;

    @ApiModelProperty(value="颜色标识 0黄 1红 2绿")
    @TableField(value ="STATE_FLAG")
    @JsonProperty(value = "stateFlag")
    private String stateFlag;

    @ApiModelProperty(value="开始时间")
    @TableField(value ="START_TIME")
    @JsonProperty(value = "startTime")
    private LocalDateTime startTime;

    @ApiModelProperty(value="结束时间")
    @TableField(value ="END_TIME")
    @JsonProperty(value = "endTime")
    private LocalDateTime endTime;

    @ApiModelProperty(value="原始消息ID")
    @TableField(value ="ORIGIN_MSG_ID")
    @JsonProperty(value = "originMsgId")
    private String originMsgId;

}
